package com.wfuhui.modules.hospital.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfuhui.modules.hospital.dao.RegisterDao;
import com.wfuhui.modules.hospital.entity.RegisterEntity;
import com.wfuhui.modules.hospital.service.RegisterService;



@Service("registerService")
public class RegisterServiceImpl implements RegisterService {
	@Autowired
	private RegisterDao registerDao;
	
	@Override
	public RegisterEntity queryObject(Integer id){
		return registerDao.queryObject(id);
	}
	
	@Override
	public List<RegisterEntity> queryList(Map<String, Object> map){
		return registerDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return registerDao.queryTotal(map);
	}
	
	@Override
	public void save(RegisterEntity register){
		registerDao.save(register);
	}
	
	@Override
	public void update(RegisterEntity register){
		registerDao.update(register);
	}
	
	@Override
	public void delete(Integer id){
		registerDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		registerDao.deleteBatch(ids);
	}
	
}
